package com.pers.springcloud.service.impl;

import com.pers.springcloud.service.PaymentHystrixServiceApi;
import org.springframework.stereotype.Component;

/**
 * @Author: 黄建
 * @Date: 2020/3/9 17:06
 */
@Component
public class PaymentFallbackService implements PaymentHystrixServiceApi {

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "PaymentFallbackService for back paymentInfo_Timeout, o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_OK(Integer id) {
        return "PaymentFallbackService for back paymentInfo_OK, o(╥﹏╥)o";
    }

    @Override
    public String paymentCircuitBreaker(Integer id) {
        return "PaymentFallbackService for back paymentCircuitBreaker, o(╥﹏╥)o";
    }
}
